package com.qbw.app.model;

import java.io.Serializable;
import java.util.List;

/**
 * 轮胎胎压
 */
public class TireData extends BaseModel implements Serializable {
    public static final int TIRE_STATE_NORMAL = 1; // 1：正常
    public static final int TIRE_STATE_ERROR = 2; // 2：异常

    private int frontWheelState; // 前轮状态，1：正常，2：异常
    private int backWheelState; // 后轮状态，1：正常，2：异常

    private List<WheelState> backWheel; // 后轮数据
    private List<WheelState> frontWheel; // 前轮数据
    private Vehicle vehicle;
    private String modifiedTime;


    public String getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(String modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public int getFrontWheelState() {
        return frontWheelState;
    }

    public void setFrontWheelState(int frontWheelState) {
        this.frontWheelState = frontWheelState;
    }

    public int getBackWheelState() {
        return backWheelState;
    }

    public void setBackWheelState(int backWheelState) {
        this.backWheelState = backWheelState;
    }

    public List<WheelState> getBackWheel() {
        return backWheel;
    }

    public void setBackWheel(List<WheelState> backWheel) {
        this.backWheel = backWheel;
    }

    public List<WheelState> getFrontWheel() {
        return frontWheel;
    }

    public void setFrontWheel(List<WheelState> frontWheel) {
        this.frontWheel = frontWheel;
    }

    public Vehicle getVehicle() {
        return vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    public static class Response extends BaseResponse<TireData> {}

    public class WheelState {
        private int faultId; // 后轮数据类型，1：传感器传输状态；2：传感器电池电量；3： 后轮胎压；4：后轮温度
        private int status; // 1，正常；2过低、无信号；3过高
        private int value; // 对应胎压 温度数值

        public int getFaultId() {
            return faultId;
        }

        public void setFaultId(int faultId) {
            this.faultId = faultId;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }
    }

}
